package com.itheima.htmo_01.pojo;


import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonIgnore;
import lombok.Data;

import java.time.LocalDateTime;

@Data
@TableName("user")
public class User {

    @TableId(type = IdType.AUTO)
    private Long id;//主键ID
    private String username;//用户名
    @JsonIgnore//让SpringMVC把当前对象转成json字符串的时候。忽略password
    //最终的json字符串中没有password这个属性了
    private String password;//密码

    private String avatar;//用户头像地址

    private String email;//邮箱

    private String attribute;

    private String sex;

    private String phone;

    private String realName;//


    private LocalDateTime createTime;//创建时间
    private LocalDateTime updateTime;//更新时间
}
